package com.example.zuoye.api;

import com.example.zuoye.bean.PostBodyBean;
import com.example.zuoye.bean.TagTravel;
import com.example.zuoye.bean.UserBean;

import java.util.List;


import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface APi {
    @POST("tag/seltag")
    Observable<List<UserBean>> tag();

    @FormUrlEncoded
    @POST("travels/seltagtravels")
    Observable<List<TagTravel>> form(@Field("page")int page,@Field("tag")int tag);

    @POST("videovalues/selcityvideos")
    Observable<List<PostBodyBean>> body(@Body RequestBody requestBody);
}
